import { Scene_Base } from "@/scenes/Scene_Base.js";
import { DataManager } from "@/managers/DataManager.js";
//import { SoundManager } from "@/managers/SoundManager.js";
import { ConfigManager } from "@/managers/ConfigManager.js";
import { SceneManager } from "@/managers/SceneManager.js";
import { Scene_Title } from "@/scenes/Scene_Title.js";
//import { Scene_Options } from "@/scenes/Scene_Options.js";
//import { Scene_StoreFile } from "./Scene_StoreFile";
//import { Scene_Battle } from "./Scene_Battle";
// import { BattleManager } from "@/managers/BattleManager";
//import { Scene_Map } from "@/scenes/Scene_Map.js";

export class Scene_Boot extends Scene_Base {
    constructor() {
        super();
    }

    create() {
        DataManager.loadDatabase();
        ConfigManager.load();

    }

    isReady() {
        return super.isReady()
        &&window.fontloaded
        &&DataManager.isDatabaseLoaded();
    }

    start() {
        //SoundManager.preloadImportantSounds();
        // SceneManager.goto(Scene_Menu);
        //SceneManager.goto(Scene_StoreFile);
        // DataManager.setupNewGame();
        // $gameTroop.setup(1);
        //BattleManager.setup();
        SceneManager.goto(Scene_Title);
    }
}

